Skip to content

product(Refactor): Simplify Core, Align Configuration, Domain and Contract Ownership - #184

Merged
mckaragoz merged 3 commits into
CodeBeamOrg:devfrom
mckaragoz:OptionsRefactor
Nov 30, 2026
Merged

mckaragoz merged 3 commits into
CodeBeamOrg:devfrom
mckaragoz:OptionsRefactor

Conversation

@mckaragoz

@mckaragoz mckaragoz commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Simplifies the UltimateAuth Core architecture by removing legacy configuration infrastructure, reducing external dependencies, and aligning types with their owning layers.

Core now focuses on shared domain primitives, contracts, abstractions, and foundational services, while runtime-specific configuration is owned by the Server and Client packages.

What's Changed

Core Simplification

  • Remove UAuthOptions and legacy direct Core configuration infrastructure.
  • Remove redundant Core configuration validators and guards.
  • Simplify AddUltimateAuth() to register only essential shared services.
  • Remove unnecessary configuration dependencies from UAuthProductInfoProvider.
  • Reduce Core package dependencies to dependency injection abstractions.

Runtime Ownership

  • Move login, token, and PKCE options to the Server package.
  • Retain shared session, multi-tenancy, and pagination options in Core.
  • Align domain types, enums, and abstractions with their owning layers.
  • Explicitly declare Client configuration dependencies instead of relying on transitive Core dependencies.

Cleanup and Testing

  • Remove obsolete configuration infrastructure and associated tests.
  • Add dedicated Core service registration tests.
  • Verify singleton lifetimes and idempotent service registration.
  • Update affected namespaces, imports, and test implementations.

Breaking Changes

  • Direct Core configuration through AddUltimateAuth(Action<UAuthOptions>) is no longer supported.
  • The UltimateAuth:Core configuration section is no longer used.
  • Several public types have moved to their appropriate namespaces.

Authentication configuration should be provided through the corresponding Server or Client registration APIs.

Architectural Impact

This refactoring establishes clearer package boundaries, reduces unnecessary coupling, and provides a cleaner foundation for future authentication modes and runtime extensions.

No new authentication features are introduced in this PR. Further configuration validation improvements remain outside its scope.

@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.63%. Comparing base (5438b5b) to head (31b087d).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
...eAuth.Server/Auth/Response/AuthResponseResolver.cs 14.28% 5 Missing and 1 partial ⚠️

❌ Your patch status has failed because the patch coverage (33.33%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #184      +/-   ##
==========================================
+ Coverage   88.31%   88.63%   +0.31%     
==========================================
  Files         620      611       -9     
  Lines       21697    21548     -149     
  Branches     2643     2597      -46     
==========================================
- Hits        19162    19099      -63     
+ Misses       1614     1539      -75     
+ Partials      921      910      -11     
Flag Coverage Δ
framework 88.63% <33.33%> (+0.31%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mckaragoz mckaragoz changed the title product(Refactor): Align Configuration, Domain and Contract Ownership product(Refactor): Simplify Core, Align Configuration, Domain and Contract Ownership Nov 30, 2026
@mckaragoz
mckaragoz merged commit 4478b51 into CodeBeamOrg:dev Nov 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant